// user_pkg/pages/bill/bill.js
Page({
  data: {
    page: 1,
    bill: []
  },
  onShow() {
    this.getBill()
  },
  async getBill() {
    const res = await wx.http.get('/balance.log/list', {page: this.data.page})
    const bill = res.data.data.list.data
    this.setData({bill})
  }
})